<template>
    <div class="gray_page">
        <!--展示信息-->
        <div class="on showMessage" v-if="showList">
            <dl>
                <dt><img src="@/assets/bigcar.png"></dt>
                <dd>
                    <h3>时代H系列   时代   轻卡&自卸</h3>
                    <p>指导价：10万~15万</p>
                </dd>
            </dl>
        </div>
        <!--填写信息-->
        <div class="compileMessage">
            <div class="titleinfo">购车信息</div>
            <div class="on">
                <div class="messList">
                    <p>朋友姓名</p>
                    <p><input type="text" placeholder="请输入您的姓名"></p>
                </div>
                <div class="messList">
                    <p>朋友手机号</p>
                    <p><input type="text" placeholder="请输入您的手机号"></p>
                </div>
                <div class="messList">
                    <p>意向车款</p>
                    <p><input type="text" placeholder="时代H1"></p>
                </div>
            </div>
        </div>
        <!--图片上传-->
        <div class="uploadingImg">
            <div class="titleinfo">请提供与客户合影照片(选填)</div>
            <div class="on showImg">
                <p><img src="@/assets/driverlicense.png"></p>
            </div>
        </div>
        <div class="uploadingImg">
            <div class="titleinfo">请提供客户驾驶证照片(选填)</div>
            <div class="on showImg">
                <p><img src="@/assets/groupphoto.png"></p>
            </div>
        </div>
        <div class="empty_box"></div>
        <div class="btnSub" @click="submitClue">提交线索</div>
    </div>
</template>

<script>

export default {
  name: '',
  data () {
    return {
      showList: true
    }
  },
  methods: {
    submitClue () {
      this.$router.push({path: '/successinfo'})
    }
  }
}
</script>

<style scoped>
.on {
    background: white;
    padding: 15px 18px;
    margin-bottom: 10px;
}

.showMessage dl {
    padding: 15px 0;
    display: flex;
}

.showMessage dl dt {
    width: 284px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 14px;
}

.showMessage dl dt img {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.showMessage dl dd {
    flex: 1;
    margin-left:15px;
}
.showMessage dl dd h3 {
    margin-top: .2rem;
    color:#323232;
    font-size:27px;
}

.showMessage dl dd p {
    font-size:28px;
    color: #FFA200;
    margin-top: .4rem;
}
/* -------------填写信息-------------*/
.titleinfo {
    font-size: 25px;
    background: white;
    height: 84px;
    font-weight: bold;
    line-height: 84px;
    border-bottom: 1px solid #E7E7E7;
    padding: 0px 36px;
    box-sizing: border-box;
}
.compileMessage {
        margin-bottom: 10px;
}
.compileMessage .messList {
    font-size: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
    padding:0px 18px;
    border-bottom: 1px solid #E7E7E7;
    color: #666666;
}

.compileMessage .messList p:last-child input {
    font-size: 25px;
    border: none;
    text-align: right;
    outline: none;
    flex: 1;
    -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
}

.compileMessage .messList:last-child {
    border-bottom: 0;
}
/* ---图片上传---*/
.uploadingImg{
       margin-bottom: 10px;
}
.uploadingImg .showImg {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
}

.uploadingImg .showImg p {
    min-width: 157px;
    max-width: 157px;
    height: 157px;
    padding: 16px 20px;
}

.uploadingImg .showImg p img {
    display: inline-block;
    width: 100%;
    height: 100%;
}
/* ---提交---*/
.btnSub {
    width: 100%;
    height: 88px;
    line-height: 88px;
    font-size: 31px;
    background: #009CFF;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
}

.btnSub:active {
    background: #037fff;
}
</style>
